
<?php if ($mr_rel_gc) { ?>

<div class="ncs-sidebar-container ncs-class-bar">
  <div class="title">
    <h4>相关分类</h4>
  </div>
  <div class="content">
    <ul class="ncs-mall-category-list">
      <?php foreach ((array) $mr_rel_gc as $v) { ?>
      <li><a href="<?php echo url('shop/Search/index', array('cate_id'=> $v['gc_id'])); ?>" title="<?php echo $v['gc_name']; ?>"><?php echo $v['gc_name']; ?></a></li>
      <?php } ?>
    </ul>
  </div>
</div>
<?php } ?>
<?php if ($mr_rel_brand) { ?>
<div class="ncs-sidebar-container ncs-class-bar">
  <div class="title">
    <h4>相关品牌</h4>
  </div>
  <div class="content">
    <ul class="ncs-mall-brand-list">
      <?php foreach ((array) $mr_rel_brand as $v) { ?>
      <li><a href="<?php echo url('shop/Brand/list', array('brand'=> $v['brand_id'])); ?>" title="<?php echo $v['brand_name']; ?>"><?php echo $v['brand_name']; ?></a></li>
      <?php } ?>
    </ul>
  </div>
</div>
<?php } ?>
 <?php if(!empty($goods_rand_list) && is_array($goods_rand_list) && count($goods_rand_list)>1){?>
    <div class="ncs-sidebar-container ynwebs-look-look">
      <div class="title">
        <h4>看了又看</h4>
      </div>
      <div class="content">
        <ul>
<?php foreach ((array) $goods_rand_list as $g) { ?>
          <li>
            <dl>
              <dt class="goods-name"><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'], )); ?>" target="_blank" title="<?php echo $g['goods_name']; ?>"><?php echo $g['goods_name']; ?><em><?php echo $g['goods_jingle'];?></em></a></dt>
              <dd class="goods-pic"><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'], )); ?>" target="_blank" title="<?php echo $goods_commend['goods_jingle'];?>">
              	<img src="__UPLOAD_PATH__/shop/common/loading.gif" data-url="<?php echo cthumb($g['goods_image'], 240); ?>" rel="lazy"/></a></dd>
              <dd class="goods-price">￥<?php echo ncPriceFormat($g['goods_promotion_price']); ?></dd>
            </dl>
          </li>
          <?php }?>
        </ul>
        <div class="clear"></div>
      </div>
    </div>
    <?php }?>
<?php if ($mr_hot_sales) { ?>
<div class="ncs-sidebar-container ncs-top-bar">
  <div class="title">
    <h4><?php echo $mr_hot_sales_gc_name; ?>热销排行榜</h4>
  </div>
  <div class="content">
    <div id="hot_sales_list" class="ncs-top-panel">
      <ol>
        <?php foreach ((array) $mr_hot_sales as $g) { ?>
        <li>
          <dl>
            <dt><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'])); ?>"><?php echo $g['goods_name']; ?></a></dt>
            <dd class="goods-pic"><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'])); ?>"><span class="thumb size60"><i></i><img src="<?php echo thumb($g, 60); ?>"  onload="javascript:DrawImage(this,60,60);"></span></a>
              <p><span class="thumb size100"><i></i><img src="__UPLOAD_PATH__/shop/common/loading.gif"  rel="lazy" data-url="<?php echo thumb($g, 240); ?>" onload="javascript:DrawImage(this,100,100);" title="<?php echo $g['goods_name']; ?>"><big></big><small></small></span></p>
            </dd>
            <dd class="price pngFix"><?php echo ncPriceFormat($g['goods_promotion_price']); ?></dd>
          </dl>
        </li>
        <?php } ?>
      </ol>
    </div>
  </div>
</div>
<?php } ?>
<?php if ($mr_rec_products) { ?>
<div class="ncs-sidebar-container ncs-top-bar">
  <div class="title">
    <h4>推荐商品</h4>
  </div>
  <div id="hot_sales_list" class="content">
    <ul class="ncs-mall-booth-list">
      <?php foreach ((array) $mr_rec_products as $g) { ?>
      <li>
        <div class="goods-pic"><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'])); ?>"><img src="__UPLOAD_PATH__/shop/common/loading.gif"  rel="lazy" data-url="<?php echo thumb($g, 240); ?>"></a></div>
        <div class="goods-name"><a href="<?php echo url('shop/Goods/index', array('goods_id' => $g['goods_id'])); ?>"><?php echo $g['goods_name']; ?></a></div>
        <div class="goods-price"><?php echo ncPriceFormat($g['goods_promotion_price']); ?></div>
      </li>
      <?php } ?>
    </ul>
  </div>
</div>
<?php } ?>
